package com.zhijiang.hospital.entrty;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class Repair {
    //申请单号
    @ExcelProperty(value = "申请单号" )
    private String repairApplyId;
    //申请科室
    @ExcelProperty(value = "申请科室" )
    private String repairApplyDept;
    @ExcelIgnore
    private String repairApplyDeptName;
    //申请人员
    @ExcelProperty(value = "申请人员" )
    private String repairApplyOperator;
    //申请人姓名
    @ExcelProperty(value = "申请人姓名" )
    private String repairApplyName;
    //申请类别
    @ExcelProperty(value = "申请类别" )
    private String repairApplyType;
    //申请详情
    @ExcelProperty(value = "申请详情" )
    private String repairApplyDetail;
    //申请时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "申请时间" )
    private String repairApplyDate;
    //申请状态
    @ExcelProperty(value = "申请状态" )
    private String repairState;
    //维修评价
    @ExcelProperty(value = "维修评价" )
    private String repairEvaluate;
    //状态
    @ExcelProperty(value = "状态" )
    private String state;
    //意见
    @ExcelProperty(value = "意见" )
    private String suggestion;
    //申请人电话
    @ExcelProperty(value = "申请人电话" )
    private String repairApplyPhone;
    //维修接单时间
    @ExcelProperty(value = "维修接单时间" )
    private Date repairAcceptDate;
    //维修完成时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "完成时间" )
    private Date repairFinishedDate;
    //维修加急程度
    @ExcelIgnore
    private String repairUrgentState;
    //维修人员
    @ExcelProperty(value = "维修人员工号" )
    private  String repairOperator;
    //维修人姓名
    @ExcelIgnore
    private String repairName;
    //作废维修单时间
    @ExcelIgnore
    private Date cancelDate;
    //开启评价
    @ExcelIgnore
    private String appraise;
    //进度
    @ExcelIgnore
    private String progress;
    //领导
    @ExcelIgnore
    private String repairLeadership;
    //领导科室
    @ExcelIgnore
    private String repairLeadershipDept;
    //图片
    @ExcelIgnore
    private List<String> images;
    @ExcelIgnore
    private String repairApplyState;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private Date repairApplyEndDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private Date repairEndDate;
}